﻿using System;
using IntegratedMeasuring.Utils;
using Newtonsoft.Json;
using SqlSugar;

namespace IntegratedMeasuring.ViewModels.Scheme;

public class LogRecord
{
    [SugarColumn(IsPrimaryKey = true)]
    public long Id { get; set; }
    
    // 日志标题
    public string Title { get; set; } = "";
    
    // 日志内容
    public string Content { get; set; } = "";
    
    // 日志等级
    public Entity.GC.LogLevel Level { get; set; } = Entity.GC.LogLevel.INFO;
    
    // 日志时间
    [JsonConverter(typeof(CustomDateTimeConverter))]
    public DateTime CreateTime { get; set; } = DateTime.Now;
}
